﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EasyStep.Attributes;using EasyStep.TestExecution.Data;using EasyStep.TestExecution.Interfaces;

using OpenQA.Selenium;


namespace EasyStep.TestActions.Actions.SwitchToIFrame
    {
    [TestAction(typeof(SwitchToIFrame), RequireLocator = true, Name = "ById", RequireData = false)]
    class SwitchToIFrameById : ITestAction<IWebDriver>
    {        
        public void Execute(IWebDriver browser, TestStepResult data, IExecuteDataContext context)
        {
            browser.SwitchTo().Frame(data.Locator);
        }
    }
}
